﻿@model Api.Model.Problem

@{
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}
@section seo{
    <title>@ViewBag.Title</title>
}
@section script{
    <script type="text/javascript">
        $(function () {
            editors.push('Description');
            window.postUrl = '@Url.Action("Index",new {Area="Admin",Th.ProjectId})';
            window.form = $('#form1');
            bindValidate(ajaxSubmit, form);
        });

        function ajaxSubmit() {
            msgBox.showMsgWait("正在提交");
            var data = $(form).serialize();
            $.post(postUrl, data, function (ajaxMsg) {
                msgBox.showMsg(ajaxMsg);
                if (ajaxMsg.status == 1) {
                    if (ajaxMsg.url != undefined && ajaxMsg.url != '') {
                        location.href = ajaxMsg.url;
                    }
                }
            })
        }
    </script>
}

<form id="form1">
    @Html.AntiForgeryToken()
    <!--左邊菜單--開始-->
    @Html.Partial("_LeftMenu")
    <!--左邊菜單--結束-->
    <!--右邊--B-->
    <div class="shanpin_right">
        <div style="height: 20px;"></div>

        <input type="hidden" value="@(Model?.Id)" name="Id" />
        <div class="productfun">
            <div class="proct1 col-lg-2 col-sm-3 col-xs-3"><span class="product_name_hk"><font class="star">*</font>描述</span></div>
            <div class="proct2 col-lg-9 col-sm-4 col-xs-9">
                @*是可以这样来设置html属性的，只有EditFor是个例外不能直接使用，所以以后应该使用TextBoxFor代替*@
                @Html.TextAreaFor(s => s.Description, new { @readonly = "readonly", @style = "width:800px;height:600px" })
            </div>
            <div class="proct3 col-lg-9 col-sm-5 col-xs-4"><span class="hk_cn"></span></div>
            <div class="clear"></div>
        </div>

        <div class="productfun">
            <div class="proct1 col-lg-2 col-sm-3 col-xs-3"><span class="product_name_hk">&nbsp;</span></div>
            <div class="proct2 col-lg-9 col-sm-4 col-xs-9">
                <input type="submit" id="btnSave" value="Save" class="save_continue button button-glow button-rounded button-royal" />
            </div>
            <div class="proct3 col-lg-9 col-sm-5 col-xs-4"><span class="hk_cn"></span></div>
            <div class="clear"></div>
        </div>
    </div>
</form>
